package com.ktjy.ruoyimes.md.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计量单位对象 unit_table
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class UnitTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 单位编码 */
    @Excel(name = "单位编码")
    private String unitCode;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unitName;

    /** 是否是主单位 */
    @Excel(name = "是否是主单位")
    private String isMainUnit;

    /** 与主单位换算比例 */
    @Excel(name = "与主单位换算比例")
    private Long conversionRatio;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String isEnabled;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUnitCode(String unitCode) 
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode() 
    {
        return unitCode;
    }

    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    public void setIsMainUnit(String isMainUnit) 
    {
        this.isMainUnit = isMainUnit;
    }

    public String getIsMainUnit() 
    {
        return isMainUnit;
    }

    public void setConversionRatio(Long conversionRatio) 
    {
        this.conversionRatio = conversionRatio;
    }

    public Long getConversionRatio() 
    {
        return conversionRatio;
    }

    public void setIsEnabled(String isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled() 
    {
        return isEnabled;
    }

    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitCode", getUnitCode())
            .append("unitName", getUnitName())
            .append("isMainUnit", getIsMainUnit())
            .append("conversionRatio", getConversionRatio())
            .append("isEnabled", getIsEnabled())
            .append("remarks", getRemarks())
            .toString();
    }
}
